﻿using System;
using System.Collections.Generic;
namespace Hermes.Model
{
	/// <summary>
	/// Orders:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Orders
	{
		public Orders()
		{}
		#region Model
		private long _id;
		private string _ordernumber;
		private int _status;
		private DateTime _ordertime;
		private decimal _amount;
		private int _siteid;
		private DateTime _addtime;
		private string _contact;
		private string _company;
		private string _street;
		private string _city;
		private string _province;
		private string _country;
		private string _countrycode;
		private string _postcode;
		private string _phone;
		private string _email;
		private string _trackcode;
		private DateTime? _modifyon;
		private int? _shippingmethod;
		private int? _storeid;
		private DateTime? _shippingon;
		private string _shippingby;
		private DateTime? _importon;
		private string _importby;
		private DateTime? _lastupdate;
		private int? _customerid;
		private int? _pickupaddressid;
		private int? _shipfromaddressid;
		/// <summary>
		/// 
		/// </summary>
		public long ID
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string OrderNumber
		{
			set{ _ordernumber=value;}
			get{return _ordernumber;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int Status
		{
			set{ _status=value;}
			get{return _status;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime OrderTime
		{
			set{ _ordertime=value;}
			get{return _ordertime;}
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal Amount
		{
			set{ _amount=value;}
			get{return _amount;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int SiteID
		{
			set{ _siteid=value;}
			get{return _siteid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime AddTime
		{
			set{ _addtime=value;}
			get{return _addtime;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Contact
		{
			set{ _contact=value;}
			get{return _contact;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Company
		{
			set{ _company=value;}
			get{return _company;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Street
		{
			set{ _street=value;}
			get{return _street;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string City
		{
			set{ _city=value;}
			get{return _city;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Province
		{
			set{ _province=value;}
			get{return _province;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Country
		{
			set{ _country=value;}
			get{return _country;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CountryCode
		{
			set{ _countrycode=value;}
			get{return _countrycode;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Postcode
		{
			set{ _postcode=value;}
			get{return _postcode;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Phone
		{
			set{ _phone=value;}
			get{return _phone;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Email
		{
			set{ _email=value;}
			get{return _email;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string TrackCode
		{
			set{ _trackcode=value;}
			get{return _trackcode;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? ModifyOn
		{
			set{ _modifyon=value;}
			get{return _modifyon;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? ShippingMethod
		{
			set{ _shippingmethod=value;}
			get{return _shippingmethod;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? StoreID
		{
			set{ _storeid=value;}
			get{return _storeid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? ShippingOn
		{
			set{ _shippingon=value;}
			get{return _shippingon;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ShippingBy
		{
			set{ _shippingby=value;}
			get{return _shippingby;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? ImportOn
		{
			set{ _importon=value;}
			get{return _importon;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ImportBy
		{
			set{ _importby=value;}
			get{return _importby;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? LastUpdate
		{
			set{ _lastupdate=value;}
			get{return _lastupdate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? CustomerID
		{
			set{ _customerid=value;}
			get{return _customerid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? PickUpAddressID
		{
			set{ _pickupaddressid=value;}
			get{return _pickupaddressid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? ShipFromAddressID
		{
			set{ _shipfromaddressid=value;}
			get{return _shipfromaddressid;}
		}

        public string Notes
        {
            get;
            set;
        }

        public List<OrderLines> OrderLines
        {
            get;
            set;
        }
		#endregion Model

	}
}

